
#include "zos_config.h"

#ifdef BOARD_USING_SPI_LCD
#include  "zos.h"
#include  "lcd.h"


int demo_spi_lcd(int argc, char *argv[])
{
   	lcd_init();
	lcd_set_color(WHITE,RED);
	lcd_show_string(0,0,16,"hello QS-100");
	lcd_show_string(0,16,16,"power mode:%d",nb_get_powenon_from_deepsleep());
	zos_task_delay(2000);
	zos_printf("start\r\n");
	lcd_clear(RED);
	lcd_clear(GREEN);
	lcd_clear(BLUE);
	lcd_clear(YELLOW);
	lcd_clear(BLACK);
	lcd_clear(MAGENTA);
	lcd_clear(CYAN);
	lcd_clear(GRAY187);
	zos_printf("stop\r\n");
	return ZOS_EOK;
}

#include "shell.h"

SHELL_EXPORT_CMD(demo_spi_lcd,demo_spi_lcd, spi lcd demo);

#endif




















